:root {
  --bg: #f0f4ec;
  --bg-2: #e6ecdf;
  --ink: #0f1f17;
  --ink-soft: #3a4a3f;
  --moss:  #97296a;
  --lime: #84cc16;
  --line: rgba(15, 31, 23, 0.12);
  --shadow: 0 20px 50px -20px rgba(15, 31, 23, 0.35);
  --radius: 18px;
  --maxw: 1200px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', system-ui, sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }

a { color: inherit; text-decoration: none; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.1rem clamp(1rem, 4vw, 3rem);
  background: color-mix(in oklab, var(--bg) 85%, transparent);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.site-footer .social-links .svg {
  width: 18px;
  height: 18px;
  display: block;
  margin: 0 auto;
  object-fit: contain;
  object-position: center;
  flex-shrink: 0;
  pointer-events: none;
}
.site-footer .social-links {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.8rem;
  margin-bottom: 0.9rem;
}
.site-footer .social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  padding: 0.65rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--bg-2);
  transition: transform .2s ease, background .2s ease;
}
.site-footer .social-links a:hover {
  transform: translateY(-2px);
  background: var(--bg);
}
.logo { display: flex; align-items: center; gap: .6rem; font-weight: 700; font-size: 1.2rem; }
.logo-text {
    font-size: 1.2rem;
    font-weight: 700;
    color: #97296a;
}

.logo-mark {
  width: 3.125rem; height: 3.125rem; border-radius: 50%;
  margin: -1px 0 -1px 0;
  box-shadow: inset 0 0 0 2px var(--bg);
}
.nav { display: flex; gap: 1.6rem; }
.nav-link {
  font-size: .92rem; color: var(--ink-soft); position: relative;
  transition: color .2s ease;
}
.nav-link::after {
  content: ''; position: absolute; left: 0; bottom: -4px;
  width: 100%; height: 1.5px; background: var(--moss);
  transform: scaleX(0); transform-origin: right; transition: transform .35s ease;
}
.nav-link:hover { color: var(--ink); }
.nav-link:hover::after { transform: scaleX(1); transform-origin: left; }

@media (max-width: 640px) { .nav { display: none; } }

/* Hero */
.hero {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(4rem, 10vw, 7rem) clamp(1rem, 4vw, 3rem) 3rem;
  text-align: center;
}
.eyebrow {
  display: inline-block;
  font-size: .8rem; letter-spacing: .18em; text-transform: uppercase;
  color: var(--moss); margin-bottom: 1.2rem;
  padding: .35rem .8rem; border: 1px solid var(--line); border-radius: 999px;
  background: var(--bg-2);
}
.hero-title {
  font-family: 'Fraunces', serif;
  font-weight: 500;
  font-size: clamp(2.2rem, 6vw, 4.4rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin-bottom: 1.4rem;
}
.accent {
  color: var(--moss);
  font-style: italic;
  position: relative;
}
.accent::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 0.05em;
  height: .35em; background: color-mix(in oklab, var(--lime) 45%, transparent);
  z-index: -1; border-radius: 4px;
}
.hero-sub {
  max-width: 620px; margin: 0 auto;
  color: var(--ink-soft); font-size: 1.05rem;
}
.hero-stats {
  display: none;
  margin-top: 3rem;
  /* display: flex; flex-wrap: wrap; justify-content: center; gap: 2.5rem; */
}
.hero-stats > div { text-align: center; }
.hero-stats strong {
  display: block;
  font-family: 'Fraunces', serif;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  color: var(--moss);
  font-weight: 700;
}
.hero-stats span {
  font-size: .85rem; letter-spacing: .12em;
  text-transform: uppercase; color: var(--ink-soft);
}

/* Sections */
.section {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(3rem, 7vw, 6rem) clamp(1rem, 4vw, 3rem);
}
.section-alt {
  max-width: none;
  background: var(--bg-2);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.section-alt > * { max-width: var(--maxw); margin-left: auto; margin-right: auto; }
.section-head { margin-bottom: 2.5rem; max-width: 640px; }
.section-head h2 {
  font-family: 'Fraunces', serif; font-weight: 500;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  letter-spacing: -0.01em; margin-bottom: .5rem;
}
.section-head p { color: var(--ink-soft); font-size: 1.02rem; }

/* Grid */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.2rem;
}
.card {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--ink);
  aspect-ratio: 4/5;
  cursor: pointer;
  box-shadow: var(--shadow);
  isolation: isolate;
}
.card img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 1.1s cubic-bezier(.2,.8,.2,1), filter .6s ease;
}
.card::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(15,31,23,.85) 0%, rgba(15,31,23,0) 55%);
  opacity: .85; transition: opacity .4s ease;
}
.card-caption {
  position: absolute; left: 1.1rem; right: 1.1rem; bottom: 1rem;
  color: var(--bg); z-index: 2;
  /* transform: translateY(8px); opacity: 0;
  transition: transform .5s ease, opacity .5s ease; */
}
.card-caption h3 { font-family: 'Fraunces', serif; font-weight: 500; font-size: 1.15rem; margin-bottom: .15rem; }
.card-caption span { font-size: .82rem; opacity: .8; }
.card:hover img { transform: scale(1.06); }
.card:hover .card-caption { transform: translateY(0); opacity: 1; }
.card:hover::after { opacity: 1; }
.bow{align-items: center;}

/* Masonry-ish */
.masonry {
  column-count: 3; column-gap: 1.2rem;
}
@media (max-width: 900px) { .masonry { column-count: 2; } }
@media (max-width: 540px) { .masonry { column-count: 1; } }
.masonry .card {
  display: block;
  width: 100%;
  margin: 0 0 1.2rem;
  aspect-ratio: auto;
  break-inside: avoid;
}
.masonry .card img { height: auto; }

/* About */
.about {
  max-width: 720px; margin: 0 auto;
  padding: clamp(4rem, 8vw, 6rem) clamp(1rem, 4vw, 3rem);
  text-align: center;
}
.about h2 {
  font-family: 'Fraunces', serif; font-weight: 500;
  font-size: clamp(2rem, 5vw, 3rem); margin-bottom: 1rem; letter-spacing: -0.02em;
}
.about p { color: var(--ink-soft); font-size: 1.08rem; margin-bottom: 2rem; }
.cta {
  display: inline-block; padding: .9rem 1.6rem;
  background: var(--moss); color: var(--bg);
  border-radius: 999px; font-weight: 500;
  transition: transform .25s ease, background .25s ease;
}
.cta:hover { background: var(--ink); transform: translateY(-2px); }

/* Footer */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 2rem; text-align: center;
  color: var(--ink-soft); font-size: .88rem;
}

/* Reveal on scroll */
[data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .9s ease, transform .9s cubic-bezier(.2,.8,.2,1);
}
[data-reveal].is-visible { opacity: 1; transform: none; }

.card { opacity: 0; transform: translateY(20px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.8,.2,1); }
.card.is-visible { opacity: 1; transform: none; }

/* Lightbox */
.lightbox {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(15, 31, 23, .92);
  display: none;
  align-items: center; justify-content: center;
  padding: 2rem;
  backdrop-filter: blur(8px);
}
.no-numbers {
    list-style: none;
    padding-left: 0;
}

.lightbox.is-open { display: flex; animation: fade .3s ease; }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
.lb-figure { max-width: min(1100px, 92vw); max-height: 86vh; text-align: center; }
.lb-figure img {
  max-width: 100%; max-height: 78vh; object-fit: contain;
  border-radius: 10px; box-shadow: 0 30px 80px rgba(0,0,0,.6);
}

.lb-figure figcaption {
  color: var(--bg); margin-top: 1rem; font-family: 'Fraunces', serif; font-size: 1.1rem;
}
.lb-close, .lb-prev, .lb-next {
  background: rgba(255,255,255,.08);
  color: var(--bg); border: 1px solid rgba(255,255,255,.15);
  width: 48px; height: 48px; border-radius: 50%;
  font-size: 1.6rem; cursor: pointer;
  display: grid; place-items: center;
  transition: background .2s ease, transform .2s ease;
}
.lb-close:hover, .lb-prev:hover, .lb-next:hover { background: rgba(255,255,255,.18); transform: scale(1.08); }
.lb-close { position: absolute; top: 1.5rem; right: 1.5rem; }
.lb-prev { margin-right: 1rem; }
.lb-next { margin-left: 1rem; }
@media (max-width: 640px) {
  .lb-prev, .lb-next { position: absolute; bottom: 1.5rem; }
  .lb-prev { left: 30%; margin: 0; }
  .lb-next { right: 30%; margin: 0; }
}
